import java.util.Scanner;

public class java {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入四位数");
        int num =sc.nextInt();
        int ge = num % 10;
        int shi = num / 10 % 10;
        int bai = num / 100 % 10;
        int qian = num / 1000;
        System.out.println(num+"个位是" + ge);
        System.out.println(num+"十位" + shi);
        System.out.println(num+"百位" + bai);
        System.out.println(num+"千位" + qian);
    }
}
